<include file="Public:_header_none" />
<link href="__HCSS__/login.css" rel="stylesheet" type="text/css" />
<div class="login_head"><a href="__ROOT__"><img src="__IMG__/logo.png" class="fl" /></a>&nbsp;&nbsp;欢迎登录</div>
<script>
 $(document).ready(function(){
 if($(".username").val().length!=0){$(".username").after('<div class="x_clesr"></div>');}
 $(".x_clesr").click(function(){
    $(this).css({"visibility":"hidden"});
    $(".username").val('');
 });
 
 
	var $errormsg='';                        //用户名和密码的检测
	$('.login_button').click(function(){

    if($(".username").val()==""||$(".userpsd").val()==""){
	   loginerror("用户名和密码不能为空");
	}else{
       if(!/^\w{4,}/.test($(".username").val())){
	      $(".username").parent().css({"border":"1px solid #E4393C"});
		  $(".username").prev().css({"border-right":"1px solid #E4393C"});
		  loginerror("用户名不正确");
	   }else if(!/^(\w){6,18}/.test($(".userpsd").val())){
	      $(".userpsd").parent().css({"border":"1px solid #E4393C"});
		  $(".userpsd").prev().css({"border-right":"1px solid #E4393C"});
		  loginerror("密码不正确");
	   }else{$('.loginform').submit();}
	}
	return false;  	
	}); 
 });
 function loginerror ($errormsg){
	      $(".login_wrap_warn").html('<b></b>'+$errormsg);
		  $(".login_wrap_warn").css({"background":"#FFEBEB","border":"1px solid #E4393C","color":"#E4393C"});
		  $(".login_wrap_warn b").css({"backgroundPosition":"-104px -48px"});
		  return false;
 }
</script>

<div id="login">
    <div class="login_main">
	  <div class="login_wrap">
	  <form class="xk_login loginform"   action="{:U('Public/doLogin')}" method="post">
	        <div class="login_wrap_head">
			     <font class="fl">{:__SYSTEMNAME__}会员</font>
				 <span><b></b><a class="colorred" href="__URL__/reg">立即注册</a></span>
			</div>
			<div class="login_wrap_warn"><b></b>公共场所不建议自动登录，以防账号丢失</div>
			<div class="login_wrap_loginname">
			     <label class="labelbase userlabel1"></label>
				 <input type="text" class="intext username" value="{$username}"  placeholder="邮箱/用户名/已验证手机" name="username"   />
				 <input type="hidden"  value="{:I('get.from')}"   name="from"   />
				 
			</div>
			<div class="login_wrap_loginpsd">
			     <label class="labelbase  psdlabel1"></label>
				 <input type="password" class="intext userpsd" placeholder="密码"  name="userpsd"/>
				 
			</div>
			<div class="login_wrap_extra">
			     <span class="fl"><input  type="checkbox"/><label>自动登录{$errmsg}</label></span>
				 <span class="fl"><input  type="checkbox"/><label>安全控件登录</label></span>
				 <span class="fr forget">忘记密码？</span>
			</div>
			<div class="loginbtn">
			      <a href="javascript:;" class="login_button">登&nbsp;&nbsp;&nbsp;&nbsp;录</a>
			</div>
		<div class="login_bottomtext">
			     <font class="lightgray">使用其他合作网站账号登录{:__SYSTEMNAME__}</font><br />
			 <font class="lightgray f13 fl"><a href="#">网银钱包</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="#">QQ</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="#">其他</a></font>
			 <b class="fl"></b>		  </div>
	  
	  
	  
	  
	  
	  </form>
	  </div>
	  <div class="login_main_l"></div>
	</div>
</div>

<include file="Public:_footer" />